import configparser
import os

conf_path = os.path.split(os.path.realpath(__file__))[0]
# print(conf_path)
text_path = conf_path+'\\config.ini'
# print(text_path)
class read():
    def __init__(self):
        self.conf = configparser.ConfigParser()
        self.conf.read(text_path,encoding='utf-8')

    def con_crm(self,name):
        conf_results = self.conf.get('crm',name)
        return conf_results

#         print(conf_results)
# b = read()
# b.con_crm('url')